import Dile_APi from "@/api";
import { equipDataTypeEnum } from "../index.type";
import { object_Inf } from "@/utils/typings/index.type";

/*
 * @Descripttion:设备Dashboard-数据类型工具类
 * @LastEditors: xzh
 * @LastEditTime: 2024-06-10 16:03:15
 */
export default class EquipDataTypeListUtils {
  /**
   * @Author: xzh
   * @Descripttion: 设备数据类型列
   * @Param:
   */
  static tableColumnMap: object_Inf = {
    //成型设备数据
    [equipDataTypeEnum.shapingEquip]: [
      {
        field: "acquisitionTime",
        //t('page.dashboardManageArr.equipDashboardArr.acquisitionTime')
        title: "page.dashboardManageArr.equipDashboardArr.acquisitionTime",
        formatter: "formatDateTime",
        width: 150,
      },
      {
        field: "equipmentStatus",
        //t('page.equipManageArr.equipState')
        title: "page.equipManageArr.equipState",
      },
      {
        field: "equipmentCode",
        //t('page.equipManageArr.equipArchivesArr.code')
        title: "page.equipManageArr.equipArchivesArr.code",
      },
      {
        field: "equipmentName",
        //t('page.equipManageArr.equipArchivesArr.name')
        title: "page.equipManageArr.equipArchivesArr.name",
      },
      {
        field: "specification",
        //t('page.equipManageArr.equipArchivesArr.specification')
        title: "page.equipManageArr.equipArchivesArr.specification",
      },
      {
        field: "equipmentType",
        //t('page.equipManageArr.equipType')
        title: "page.equipManageArr.equipType",
      },
      {
        field: "factoryName",
        //t('page.equipManageArr.equipArchivesArr.factory')
        title: "page.equipManageArr.equipArchivesArr.factory",
      },
      {
        field: "equipmentPosition",
        //t('page.systemManageArr.position')
        title: "page.systemManageArr.position",
      },
      {
        field: "eeTotal",
        //t('page.dashboardManageArr.equipDashboardArr.shapingEquipArr.eeTotal')
        title:
          "page.dashboardManageArr.equipDashboardArr.shapingEquipArr.eeTotal",
        unit: "KWH",
      },
      {
        field: "formingTotalTimes",
        //t('page.dashboardManageArr.equipDashboardArr.shapingEquipArr.formingTotalTimes')
        title:
          "page.dashboardManageArr.equipDashboardArr.shapingEquipArr.formingTotalTimes",
      },
      // {
      //   field: "formingPressure",
      //   //t('page.dashboardManageArr.equipDashboardArr.shapingEquipArr.formingPressure')
      //   title:
      //     "page.dashboardManageArr.equipDashboardArr.shapingEquipArr.formingPressure",
      // },
      {
        field: "formingSuctionTime",
        //t('page.dashboardManageArr.equipDashboardArr.shapingEquipArr.formingSuctionTime')
        title:
          "page.dashboardManageArr.equipDashboardArr.shapingEquipArr.formingSuctionTime",
        unit: "S",
      },
      {
        field: "formingDehydrationTime",
        //t('page.dashboardManageArr.equipDashboardArr.shapingEquipArr.formingDehydrationTime')
        title:
          "page.dashboardManageArr.equipDashboardArr.shapingEquipArr.formingDehydrationTime",
        unit: "S",
      },
      {
        field: "leftHPTotalTimes",
        //t('page.dashboardManageArr.equipDashboardArr.shapingEquipArr.leftHPTotalTimes')
        title:
          "page.dashboardManageArr.equipDashboardArr.shapingEquipArr.leftHPTotalTimes",
      },
      {
        field: "leftHotPressure",
        //t('page.dashboardManageArr.equipDashboardArr.shapingEquipArr.leftHotPressure')
        title:
          "page.dashboardManageArr.equipDashboardArr.shapingEquipArr.leftHotPressure",
        unit: "%",
      },
      {
        field: "leftHPTime",
        //t('page.dashboardManageArr.equipDashboardArr.shapingEquipArr.leftHPTime')
        title:
          "page.dashboardManageArr.equipDashboardArr.shapingEquipArr.leftHPTime",
        unit: "S",
      },
      {
        field: "leftUpperTempSet",
        //t('page.dashboardManageArr.equipDashboardArr.shapingEquipArr.leftUpperTempSet')
        title:
          "page.dashboardManageArr.equipDashboardArr.shapingEquipArr.leftUpperTempSet",
        unit: "℃",
      },
      {
        field: "leftDownTempSet",
        //t('page.dashboardManageArr.equipDashboardArr.shapingEquipArr.leftDownTempSet')
        title:
          "page.dashboardManageArr.equipDashboardArr.shapingEquipArr.leftDownTempSet",
        unit: "℃",
      },
      {
        field: "leftUpperTemp",
        //t('page.dashboardManageArr.equipDashboardArr.shapingEquipArr.leftUpperTemp')
        title:
          "page.dashboardManageArr.equipDashboardArr.shapingEquipArr.leftUpperTemp",
        unit: "℃",
        childern: [
          {
            field: "leftUpperTemp1",
          },
          {
            field: "leftUpperTemp2",
          },
          {
            field: "leftUpperTemp3",
          },
          // {
          //   field: "leftUpperTemp4",
          // },
        ],
      },
      {
        field: "leftDownTemp",
        //t('page.dashboardManageArr.equipDashboardArr.shapingEquipArr.leftDownTemp')
        title:
          "page.dashboardManageArr.equipDashboardArr.shapingEquipArr.leftDownTemp",
        unit: "℃",
        childern: [
          {
            field: "leftDownTemp1",
          },
          {
            field: "leftDownTemp2",
          },
          {
            field: "leftDownTemp3",
          },
          // {
          //   field: "leftDownTemp4",
          // },
        ],
      },
      {
        field: "leftBakeTime",
        //t('page.dashboardManageArr.equipDashboardArr.shapingEquipArr.leftBakeTime')
        title:
          "page.dashboardManageArr.equipDashboardArr.shapingEquipArr.leftBakeTime",
        unit: "S",
      },
      {
        field: "leftPressurizeTime",
        //t('page.dashboardManageArr.equipDashboardArr.shapingEquipArr.leftPressurizeTime')
        title:
          "page.dashboardManageArr.equipDashboardArr.shapingEquipArr.leftPressurizeTime",
        unit: "S",
      },
      {
        field: "rightHPToatalTimes",
        //t('page.dashboardManageArr.equipDashboardArr.shapingEquipArr.rightHPToatalTimes')
        title:
          "page.dashboardManageArr.equipDashboardArr.shapingEquipArr.rightHPToatalTimes",
      },
      {
        field: "rightHotPressure",
        //t('page.dashboardManageArr.equipDashboardArr.shapingEquipArr.rightHotPressure')
        title:
          "page.dashboardManageArr.equipDashboardArr.shapingEquipArr.rightHotPressure",
        unit: "%",
      },
      {
        field: "rightHPTime",
        //t('page.dashboardManageArr.equipDashboardArr.shapingEquipArr.rightHPTime')
        title:
          "page.dashboardManageArr.equipDashboardArr.shapingEquipArr.rightHPTime",
        unit: "S",
      },
      {
        field: "rightUpperTempSet",
        //t('page.dashboardManageArr.equipDashboardArr.shapingEquipArr.rightUpperTempSet')
        title:
          "page.dashboardManageArr.equipDashboardArr.shapingEquipArr.rightUpperTempSet",
        unit: "℃",
      },
      {
        field: "rightDownTempSet",
        //t('page.dashboardManageArr.equipDashboardArr.shapingEquipArr.rightDownTempSet')
        title:
          "page.dashboardManageArr.equipDashboardArr.shapingEquipArr.rightDownTempSet",
        unit: "℃",
      },
      {
        field: "rightUpperTemp",
        //t('page.dashboardManageArr.equipDashboardArr.shapingEquipArr.rightUpperTemp')
        title:
          "page.dashboardManageArr.equipDashboardArr.shapingEquipArr.rightUpperTemp",
        unit: "℃",
        childern: [
          {
            field: "rightUpperTemp1",
          },
          {
            field: "rightUpperTemp2",
          },
          {
            field: "rightUpperTemp3",
          },
          // {
          //   field: "rightUpperTemp4",
          // },
        ],
      },
      {
        field: "rightDownTemp",
        //t('page.dashboardManageArr.equipDashboardArr.shapingEquipArr.rightDownTemp')
        title:
          "page.dashboardManageArr.equipDashboardArr.shapingEquipArr.rightDownTemp",
        unit: "℃",
        childern: [
          {
            field: "rightDownTemp1",
          },
          {
            field: "rightDownTemp2",
          },
          {
            field: "rightDownTemp3",
          },
          // {
          //   field: "rightDownTemp4",
          // },
        ],
      },
      {
        field: "rightBrakeTime",
        //t('page.dashboardManageArr.equipDashboardArr.shapingEquipArr.rightBrakeTime')
        title:
          "page.dashboardManageArr.equipDashboardArr.shapingEquipArr.rightBrakeTime",
        unit: "S",
      },
      {
        field: "rightPressurizeTime",
        //t('page.dashboardManageArr.equipDashboardArr.shapingEquipArr.rightPressurizeTime')
        title:
          "page.dashboardManageArr.equipDashboardArr.shapingEquipArr.rightPressurizeTime",
        unit: "S",
      },
    ],
    //当日1311设备
    [equipDataTypeEnum.otherEquip]: [
      {
        field: "acquisitionTime",
        //t('page.dashboardManageArr.equipDashboardArr.acquisitionTime')
        title: "page.dashboardManageArr.equipDashboardArr.acquisitionTime",
        formatter: "formatDateTime",
        width: 150,
      },
      {
        field: "equipmentStatus",
        //t('page.equipManageArr.equipState')
        title: "page.equipManageArr.equipState",
      },
      {
        field: "equipmentCode",
        //t('page.equipManageArr.equipArchivesArr.code')
        title: "page.equipManageArr.equipArchivesArr.code",
      },
      {
        field: "equipmentName",
        //t('page.equipManageArr.equipArchivesArr.name')
        title: "page.equipManageArr.equipArchivesArr.name",
      },
      {
        field: "specification",
        //t('page.equipManageArr.equipArchivesArr.specification')
        title: "page.equipManageArr.equipArchivesArr.specification",
      },
      {
        field: "equipmentType",
        //t('page.equipManageArr.equipType')
        title: "page.equipManageArr.equipType",
      },
      {
        field: "factoryName",
        //t('page.equipManageArr.equipArchivesArr.factory')
        title: "page.equipManageArr.equipArchivesArr.factory",
      },
      {
        field: "equipmentPosition",
        //t('page.systemManageArr.position')
        title: "page.systemManageArr.position",
      },
      {
        field: "eeTotal",
        //t('page.dashboardManageArr.equipDashboardArr.shapingEquipArr.eeTotal')
        title:
          "page.dashboardManageArr.equipDashboardArr.shapingEquipArr.eeTotal",
        unit: "KWH",
      },
      // {
      //   field: "machineNo",
      //   //t('page.dashboardManageArr.equipDashboardArr.machineNo')
      //   title: "page.dashboardManageArr.equipDashboardArr.machineNo",
      // },
      {
        field: "formingTotalTimes",
        //t('page.dashboardManageArr.equipDashboardArr.shapingEquipArr.formingTotalTimes')
        title:
          "page.dashboardManageArr.equipDashboardArr.shapingEquipArr.formingTotalTimes",
      },
      {
        field: "formingPressure",
        //t('page.dashboardManageArr.equipDashboardArr.shapingEquipArr.formingPressure')
        title:
          "page.dashboardManageArr.equipDashboardArr.shapingEquipArr.formingPressure",
        unit: "Kg",
      },
      {
        field: "formingTimes",
        //t('page.dashboardManageArr.equipDashboardArr.shapingEquipArr.formingTimes')
        title:
          "page.dashboardManageArr.equipDashboardArr.shapingEquipArr.formingTimes",
      },
      // {
      //   field: "formingSuctionTime",
      //   //t('page.dashboardManageArr.equipDashboardArr.shapingEquipArr.formingSuctionTime')
      //   title:
      //     "page.dashboardManageArr.equipDashboardArr.shapingEquipArr.formingSuctionTime",
      // },
      // {
      //   field: "formingDehydrationTime",
      //   //t('page.dashboardManageArr.equipDashboardArr.shapingEquipArr.formingDehydrationTime')
      //   title:
      //     "page.dashboardManageArr.equipDashboardArr.shapingEquipArr.formingDehydrationTime",
      // },
      {
        field: "formingTime",
        //t('page.dashboardManageArr.equipDashboardArr.shapingEquipArr.formingTime')
        title:
          "page.dashboardManageArr.equipDashboardArr.shapingEquipArr.formingTime",
        unit: "S",
      },
      {
        field: "leftHPTimes",
        //t('page.dashboardManageArr.equipDashboardArr.shapingEquipArr.leftHPTimes')
        title:
          "page.dashboardManageArr.equipDashboardArr.shapingEquipArr.leftHPTimes",
      },
      {
        field: "leftHPTotalTimes",
        //t('page.dashboardManageArr.equipDashboardArr.shapingEquipArr.leftHPTotalTimes')
        title:
          "page.dashboardManageArr.equipDashboardArr.shapingEquipArr.leftHPTotalTimes",
      },
      {
        field: "leftHotPressure",
        //t('page.dashboardManageArr.equipDashboardArr.shapingEquipArr.leftHotPressure')
        title:
          "page.dashboardManageArr.equipDashboardArr.shapingEquipArr.leftHotPressure",
        unit: "Kg",
      },
      {
        field: "leftHPTime",
        //t('page.dashboardManageArr.equipDashboardArr.shapingEquipArr.leftHPTime')
        title:
          "page.dashboardManageArr.equipDashboardArr.shapingEquipArr.leftHPTime",
        unit: "S",
      },
      {
        field: "leftUpperTempSet",
        //t('page.dashboardManageArr.equipDashboardArr.shapingEquipArr.leftUpperTempSet')
        title:
          "page.dashboardManageArr.equipDashboardArr.shapingEquipArr.leftUpperTempSet",
        unit: "℃",
      },
      {
        field: "leftDownTempSet",
        //t('page.dashboardManageArr.equipDashboardArr.shapingEquipArr.leftDownTempSet')
        title:
          "page.dashboardManageArr.equipDashboardArr.shapingEquipArr.leftDownTempSet",
        unit: "℃",
      },
      {
        field: "leftUpperTemp",
        //t('page.dashboardManageArr.equipDashboardArr.shapingEquipArr.leftUpperTemp')
        title:
          "page.dashboardManageArr.equipDashboardArr.shapingEquipArr.leftUpperTemp",
        unit: "℃",
        childern: [
          {
            field: "leftUpperTemp1",
          },
          {
            field: "leftUpperTemp2",
          },
          {
            field: "leftUpperTemp3",
          },
          {
            field: "leftUpperTemp4",
          },
        ],
      },
      {
        field: "leftDownTemp",
        //t('page.dashboardManageArr.equipDashboardArr.shapingEquipArr.leftDownTemp')
        title:
          "page.dashboardManageArr.equipDashboardArr.shapingEquipArr.leftDownTemp",
        unit: "℃",
        childern: [
          {
            field: "leftDownTemp1",
          },
          {
            field: "leftDownTemp2",
          },
          {
            field: "leftDownTemp3",
          },
          {
            field: "leftDownTemp4",
          },
        ],
      },
      {
        field: "leftBakeTime",
        //t('page.dashboardManageArr.equipDashboardArr.shapingEquipArr.leftBakeTime')
        title:
          "page.dashboardManageArr.equipDashboardArr.shapingEquipArr.leftBakeTime",
        unit: "S",
      },
      {
        field: "leftPressurizeTime",
        //t('page.dashboardManageArr.equipDashboardArr.shapingEquipArr.leftPressurizeTime')
        title:
          "page.dashboardManageArr.equipDashboardArr.shapingEquipArr.leftPressurizeTime",
        unit: "S",
      },
      {
        field: "rightHPTimes",
        //t('page.dashboardManageArr.equipDashboardArr.shapingEquipArr.rightHPTimes')
        title:
          "page.dashboardManageArr.equipDashboardArr.shapingEquipArr.rightHPTimes",
      },
      {
        field: "rightHPToatalTimes",
        //t('page.dashboardManageArr.equipDashboardArr.shapingEquipArr.rightHPToatalTimes')
        title:
          "page.dashboardManageArr.equipDashboardArr.shapingEquipArr.rightHPToatalTimes",
      },
      {
        field: "rightHotPressure",
        //t('page.dashboardManageArr.equipDashboardArr.shapingEquipArr.rightHotPressure')
        title:
          "page.dashboardManageArr.equipDashboardArr.shapingEquipArr.rightHotPressure",
        unit: "Kg",
      },
      {
        field: "rightHPTime",
        //t('page.dashboardManageArr.equipDashboardArr.shapingEquipArr.rightHPTime')
        title:
          "page.dashboardManageArr.equipDashboardArr.shapingEquipArr.rightHPTime",
        unit: "S",
      },
      {
        field: "rightUpperTempSet",
        //t('page.dashboardManageArr.equipDashboardArr.shapingEquipArr.rightUpperTempSet')
        title:
          "page.dashboardManageArr.equipDashboardArr.shapingEquipArr.rightUpperTempSet",
        unit: "℃",
      },
      {
        field: "rightDownTempSet",
        //t('page.dashboardManageArr.equipDashboardArr.shapingEquipArr.rightDownTempSet')
        title:
          "page.dashboardManageArr.equipDashboardArr.shapingEquipArr.rightDownTempSet",
        unit: "℃",
      },
      {
        field: "rightUpperTemp",
        //t('page.dashboardManageArr.equipDashboardArr.shapingEquipArr.rightUpperTemp')
        title:
          "page.dashboardManageArr.equipDashboardArr.shapingEquipArr.rightUpperTemp",
        unit: "℃",
        childern: [
          {
            field: "rightUpperTemp1",
          },
          {
            field: "rightUpperTemp2",
          },
          {
            field: "rightUpperTemp3",
          },
          {
            field: "rightUpperTemp4",
          },
        ],
      },
      {
        field: "rightDownTemp",
        //t('page.dashboardManageArr.equipDashboardArr.shapingEquipArr.rightDownTemp')
        title:
          "page.dashboardManageArr.equipDashboardArr.shapingEquipArr.rightDownTemp",
        unit: "℃",
        childern: [
          {
            field: "rightDownTemp1",
          },
          {
            field: "rightDownTemp2",
          },
          {
            field: "rightDownTemp3",
          },
          {
            field: "rightDownTemp4",
          },
        ],
      },
      {
        field: "rightBrakeTime",
        //t('page.dashboardManageArr.equipDashboardArr.shapingEquipArr.rightBrakeTime')
        title:
          "page.dashboardManageArr.equipDashboardArr.shapingEquipArr.rightBrakeTime",
        unit: "S",
      },
      {
        field: "rightPressurizeTime",
        //t('page.dashboardManageArr.equipDashboardArr.shapingEquipArr.rightPressurizeTime')
        title:
          "page.dashboardManageArr.equipDashboardArr.shapingEquipArr.rightPressurizeTime",
        unit: "S",
      },
      {
        field: "cutPressure_1311",
        //t('page.dashboardManageArr.equipDashboardArr.otherEquipArr.cutPressure_1311')
        title:
          "page.dashboardManageArr.equipDashboardArr.otherEquipArr.cutPressure_1311",
        unit: "bar",
      },
      {
        field: "cutCount_1311",
        //t('page.dashboardManageArr.equipDashboardArr.otherEquipArr.cutCount_1311')
        title:
          "page.dashboardManageArr.equipDashboardArr.otherEquipArr.cutCount_1311",
      },
      {
        field: "cutTotalCount_1311",
        //t('page.dashboardManageArr.equipDashboardArr.otherEquipArr.cutTotalCount_1311')
        title:
          "page.dashboardManageArr.equipDashboardArr.otherEquipArr.cutTotalCount_1311",
      },
      {
        field: "checkNg_1311",
        //t('page.dashboardManageArr.equipDashboardArr.otherEquipArr.checkNg_1311')
        title:
          "page.dashboardManageArr.equipDashboardArr.otherEquipArr.checkNg_1311",
      },
      {
        field: "checkReady_1311",
        //t('page.dashboardManageArr.equipDashboardArr.otherEquipArr.checkReady_1311')
        title:
          "page.dashboardManageArr.equipDashboardArr.otherEquipArr.checkReady_1311",
      },
      {
        field: "checkNum_1311",
        //t('page.dashboardManageArr.equipDashboardArr.otherEquipArr.checkNum_1311')
        title:
          "page.dashboardManageArr.equipDashboardArr.otherEquipArr.checkNum_1311",
      },
      {
        field: "checkTotalNum_1311",
        //t('page.dashboardManageArr.equipDashboardArr.otherEquipArr.checkTotalNum_1311')
        title:
          "page.dashboardManageArr.equipDashboardArr.otherEquipArr.checkTotalNum_1311",
      },
      {
        field: "stackingNum",
        //t('page.dashboardManageArr.equipDashboardArr.otherEquipArr.stackingNum')
        title:
          "page.dashboardManageArr.equipDashboardArr.otherEquipArr.stackingNum",
      },
      {
        field: "stackingFloorNum",
        //t('page.dashboardManageArr.equipDashboardArr.otherEquipArr.stackingFloorNum')
        title:
          "page.dashboardManageArr.equipDashboardArr.otherEquipArr.stackingFloorNum",
      },
      {
        field: "stackingTotalNum",
        //t('page.dashboardManageArr.equipDashboardArr.otherEquipArr.stackingTotalNum')
        title:
          "page.dashboardManageArr.equipDashboardArr.otherEquipArr.stackingTotalNum",
      },
    ],
    //当日切边机数据
    [equipDataTypeEnum.sideCutEquip]: [
      {
        field: "acquisitionTime",
        //t('page.dashboardManageArr.equipDashboardArr.acquisitionTime')
        title: "page.dashboardManageArr.equipDashboardArr.acquisitionTime",
        formatter: "formatDateTime",
        width: 150,
      },
      {
        field: "equipmentStatus",
        //t('page.equipManageArr.equipState')
        title: "page.equipManageArr.equipState",
      },
      {
        field: "equipmentCode",
        //t('page.equipManageArr.equipArchivesArr.code')
        title: "page.equipManageArr.equipArchivesArr.code",
      },
      {
        field: "equipmentName",
        //t('page.equipManageArr.equipArchivesArr.name')
        title: "page.equipManageArr.equipArchivesArr.name",
      },
      {
        field: "specification",
        //t('page.equipManageArr.equipArchivesArr.specification')
        title: "page.equipManageArr.equipArchivesArr.specification",
      },
      {
        field: "equipmentType",
        //t('page.equipManageArr.equipType')
        title: "page.equipManageArr.equipType",
      },
      {
        field: "factoryName",
        //t('page.equipManageArr.equipArchivesArr.factory')
        title: "page.equipManageArr.equipArchivesArr.factory",
      },
      {
        field: "equipmentPosition",
        //t('page.systemManageArr.position')
        title: "page.systemManageArr.position",
      },
      {
        field: "trimmingPressure",
        //t('page.dashboardManageArr.equipDashboardArr.sideCutEquipArr.trimmingPressure')
        title:
          "page.dashboardManageArr.equipDashboardArr.sideCutEquipArr.trimmingPressure",
        unit: "%",
      },
      {
        field: "trimingTimes",
        //t('page.dashboardManageArr.equipDashboardArr.sideCutEquipArr.trimingTimes')
        title:
          "page.dashboardManageArr.equipDashboardArr.sideCutEquipArr.trimingTimes",
      },
      {
        field: "trimingTotalTimes",
        //t('page.dashboardManageArr.equipDashboardArr.sideCutEquipArr.trimingTotalTimes')
        title:
          "page.dashboardManageArr.equipDashboardArr.sideCutEquipArr.trimingTotalTimes",
      },
    ],
    //当日AOI设备数据
    [equipDataTypeEnum.aoiEquip]: [
      {
        field: "acquisitionTime",
        //t('page.dashboardManageArr.equipDashboardArr.acquisitionTime')
        title: "page.dashboardManageArr.equipDashboardArr.acquisitionTime",
        formatter: "formatDateTime",
        width: 150,
      },
      {
        field: "equipmentStatus",
        //t('page.equipManageArr.equipState')
        title: "page.equipManageArr.equipState",
      },
      {
        field: "equipmentCode",
        //t('page.equipManageArr.equipArchivesArr.code')
        title: "page.equipManageArr.equipArchivesArr.code",
      },
      {
        field: "equipmentName",
        //t('page.equipManageArr.equipArchivesArr.name')
        title: "page.equipManageArr.equipArchivesArr.name",
      },
      {
        field: "specification",
        //t('page.equipManageArr.equipArchivesArr.specification')
        title: "page.equipManageArr.equipArchivesArr.specification",
      },
      {
        field: "equipmentType",
        //t('page.equipManageArr.equipType')
        title: "page.equipManageArr.equipType",
      },
      {
        field: "factoryName",
        //t('page.equipManageArr.equipArchivesArr.factory')
        title: "page.equipManageArr.equipArchivesArr.factory",
      },
      {
        field: "equipmentPosition",
        //t('page.systemManageArr.position')
        title: "page.systemManageArr.position",
      },
      {
        field: "checkNGNo",
        //t('page.dashboardManageArr.equipDashboardArr.aoiEquipArr.checkNGNo')
        title:
          "page.dashboardManageArr.equipDashboardArr.aoiEquipArr.checkNGNo",
      },
      {
        field: "checkPendTimes",
        //t('page.dashboardManageArr.equipDashboardArr.aoiEquipArr.checkPendTimes')
        title:
          "page.dashboardManageArr.equipDashboardArr.aoiEquipArr.checkPendTimes",
      },
      {
        field: "checkTotalTimes",
        //t('page.dashboardManageArr.equipDashboardArr.aoiEquipArr.checkTotalTimes')
        title:
          "page.dashboardManageArr.equipDashboardArr.aoiEquipArr.checkTotalTimes",
      },
      {
        field: "checkTimes",
        //t('page.dashboardManageArr.equipDashboardArr.aoiEquipArr.checkTimes')
        title:
          "page.dashboardManageArr.equipDashboardArr.aoiEquipArr.checkTimes",
      },
    ],
    //当日ESG数据-流量计
    [equipDataTypeEnum.esgFlowmeterEquip]: [
      {
        field: "acquisitionTime",
        //t('page.dashboardManageArr.equipDashboardArr.acquisitionTime')
        title: "page.dashboardManageArr.equipDashboardArr.acquisitionTime",
        formatter: "formatDateTime",
        width: 150,
      },
      {
        field: "equipmentStatus",
        //t('page.equipManageArr.equipState')
        title: "page.equipManageArr.equipState",
      },
      {
        field: "deviceNo",
        //t('page.equipManageArr.equipArchivesArr.name')
        title: "page.equipManageArr.equipArchivesArr.name",
      },
      {
        field: "deviceBrand",
        //t('page.equipManageArr.equipType')
        title: "page.equipManageArr.equipType",
      },
      {
        field: "flowTotal",
        //t('page.dashboardManageArr.equipDashboardArr.esgFlowmeterEquipArr.flowTotal')
        title:
          "page.dashboardManageArr.equipDashboardArr.esgFlowmeterEquipArr.flowTotal",
        unit: "M3",
      },
    ],
    //当日ESG数据-电能表
    [equipDataTypeEnum.esgElectricEquip]: [
      {
        field: "acquisitionTime",
        //t('page.dashboardManageArr.equipDashboardArr.acquisitionTime')
        title: "page.dashboardManageArr.equipDashboardArr.acquisitionTime",
        formatter: "formatDateTime",
        width: 150,
      },
      {
        field: "equipmentStatus",
        //t('page.equipManageArr.equipState')
        title: "page.equipManageArr.equipState",
      },
      {
        field: "deviceNo",
        //t('page.equipManageArr.equipArchivesArr.name')
        title: "page.equipManageArr.equipArchivesArr.name",
      },
      {
        field: "deviceBrand",
        //t('page.equipManageArr.equipType')
        title: "page.equipManageArr.equipType",
      },
      {
        field: "ecTotal",
        //t('page.dashboardManageArr.equipDashboardArr.esgElectricEquipArr.ecTotal')
        title:
          "page.dashboardManageArr.equipDashboardArr.esgElectricEquipArr.ecTotal",
        unit: "KWH",
      },
    ],
  };
  /**
   * @Author: xzh
   * @Descripttion:设备数据类型列表数据源
   * @Param:
   * @param {equipDataTypeEnum} EquipType
   */
  static async getEuipDataTypeList(EquipType: equipDataTypeEnum) {
    let dataArr: Array<object_Inf> = [];
    switch (EquipType) {
      case equipDataTypeEnum.shapingEquip:
        //成型设备数据
        dataArr = await Dile_APi.getShapingEquipDashboard();
        break;
    }
    return dataArr;
  }

  static filterClounmMap = {
    ["塞尔维亚"]: {
      [equipDataTypeEnum.otherEquip]: [
        "eeTotal",
        "formingTotalTimes",
        "formingPressure",
        "formingTimes",
        "formingTime",
        "leftHPTimes",
        "leftHPTotalTimes",
        "leftHotPressure",
        "leftHPTime",
        "leftUpperTempSet",
        "leftDownTempSet",
        "leftUpperTemp",
        "leftDownTemp",
        "leftBakeTime",
        "leftPressurizeTime",
        "rightHPTimes",
        "rightHPToatalTimes",
        "rightHotPressure",
        "rightHPTime",
        "rightUpperTempSet",
        "rightDownTempSet",
        "rightUpperTemp",
        "rightDownTemp",
        "rightBrakeTime",
        "rightPressurizeTime",
      ],
    },
  };
}
